package com.itheima.web1.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data//表示有getter和setter方法
@AllArgsConstructor// 表示有参构造
public class User {
    private String name;
    private int age;
    private Address address;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", address=" + address +
                '}';
    }
}
